//
// NewLifeDDK.h
// Usage: Function define for NewLife device driver
// CreateDate: 2009-06-02
// Author: MaJiuyue
//
#ifndef _NEWLIFEDDK_H_
#define _NEWLIFEDDK_H_

#include <type.h>
#include <io.h>

#ifdef __cplusplus
extern "C" {
#endif

bool RegisterIRQ(int count, u16 *IRQs);
bool UnRegisterIRQ(int count, u16 *IRQs);
bool RegisterPort(int count, u16 *ports);
bool UnRegisterPort(int count, u16 *ports);
bool MapAddress(u32 vaddr, u32 size, u32 paddr);
bool UnmapAddress(u32 vaddr, u32 size);

// Register device driver, create device file. (totally create 'cnt' file)
bool CreateDevice(const char * name, int cnt);

#ifdef __cplusplus
}
#endif


#endif
